<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{saleLoanContractGuarantorBean.id}"/>
		<f:event type="preRenderView" listener="#{saleLoanContractGuarantorBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sale Loan Contract Guarantor"/>

	<ui:define name="header">
		Sale Loan Contract Guarantor
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty saleLoanContractGuarantorBean.id}">
				Edit existing Sale Loan Contract Guarantor
			</c:when>
			<c:otherwise>
				Create a new Sale Loan Contract Guarantor
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorSaleLoanContract" value="Sale Loan Contract:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{saleLoanContractBean.converter}" id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorSaleLoanContract" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.saleLoanContract}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{saleLoanContractBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorSaleLoanContract" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorCustGrtNo" value="Cust Grt No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorCustGrtNo" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.custGrtNo}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorCustGrtNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOccupationNo" value="Occupation No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOccupationNo" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.occupationNo}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOccupationNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorIdCardNo" value="Id Card No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorIdCardNo" maxLength="20" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.idCardNo}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorIdCardNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorIdCardIssuedDate" value="Id Card Issued Date:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorIdCardIssuedDate" maxLength="10" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.idCardIssuedDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorIdCardIssuedDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorIdCardExpireDate" value="Id Card Expire Date:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorIdCardExpireDate" maxLength="10" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.idCardExpireDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorIdCardExpireDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorIdCardIssuedAt" value="Id Card Issued At:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorIdCardIssuedAt" maxLength="100" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.idCardIssuedAt}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorIdCardIssuedAt" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorNameTitleNo" value="Name Title No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorNameTitleNo" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.nameTitleNo}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorNameTitleNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorFirstName" value="First Name:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorFirstName" maxLength="50" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.firstName}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorFirstName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorLastName" value="Last Name:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorLastName" maxLength="50" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.lastName}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorLastName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorSexNo" value="Sex No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorSexNo" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.sexNo}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorSexNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorGrtAge" value="Grt Age:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorGrtAge" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.grtAge}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorGrtAge" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddrNo" value="Addr No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddrNo" maxLength="50" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.addrNo}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddrNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddrMoo" value="Addr Moo:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddrMoo" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.addrMoo}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddrMoo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddrBuilding" value="Addr Building:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddrBuilding" maxLength="100" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.addrBuilding}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddrBuilding" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddrSoi" value="Addr Soi:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddrSoi" maxLength="50" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.addrSoi}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddrSoi" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddrRoad" value="Addr Road:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddrRoad" maxLength="50" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.addrRoad}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddrRoad" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddr1" value="Addr 1:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddr1" maxLength="100" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.addr1}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddr1" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddr2No" value="Addr 2No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddr2No" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.addr2No}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddr2No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddr3No" value="Addr 3No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddr3No" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.addr3No}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddr3No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddr4No" value="Addr 4No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddr4No" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.addr4No}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddr4No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddr5" value="Addr 5:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddr5" maxLength="50" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.addr5}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorAddr5" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorPhoneNo" value="Phone No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorPhoneNo" maxLength="20" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.phoneNo}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorPhoneNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorMobileNo" value="Mobile No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorMobileNo" maxLength="20" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.mobileNo}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorMobileNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeName" value="Office Name:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeName" maxLength="50" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.officeName}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddrNo" value="Office Addr No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddrNo" maxLength="50" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.officeAddrNo}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddrNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddrMoo" value="Office Addr Moo:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddrMoo" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.officeAddrMoo}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddrMoo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddrBuilding" value="Office Addr Building:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddrBuilding" maxLength="100" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.officeAddrBuilding}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddrBuilding" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddrSoi" value="Office Addr Soi:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddrSoi" maxLength="50" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.officeAddrSoi}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddrSoi" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddrRoad" value="Office Addr Road:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddrRoad" maxLength="50" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.officeAddrRoad}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddrRoad" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddr1" value="Office Addr 1:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddr1" maxLength="100" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.officeAddr1}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddr1" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddr2No" value="Office Addr 2No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddr2No" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.officeAddr2No}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddr2No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddr3No" value="Office Addr 3No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddr3No" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.officeAddr3No}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddr3No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddr4No" value="Office Addr 4No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddr4No" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.officeAddr4No}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddr4No" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddr5" value="Office Addr 5:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddr5" maxLength="10" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.officeAddr5}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficeAddr5" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficePhoneNo" value="Office Phone No:"/>
				<h:panelGroup>
					<h:inputText id="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficePhoneNo" maxLength="20" value="#{saleLoanContractGuarantorBean.saleLoanContractGuarantor.officePhoneNo}"/>
					<h:message for="saleLoanContractGuarantorBeanSaleLoanContractGuarantorOfficePhoneNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{saleLoanContractGuarantorBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty saleLoanContractGuarantorBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{saleLoanContractGuarantorBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{saleLoanContractGuarantorBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>